<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../static/vue/2.6.10/vue.js" type="text/javascript"></script>
    <title>Title</title>
</head>
<body>
    <div id="app">
        <button-counter></button-counter>
        <button-counter></button-counter>
    </div>

    <script type="text/javascript">
        Vue.component(
            'button-counter', {
                data: function () {
                    return {
                        count: 0
                    };
                },
                template: '<button v-on:click="count++">You clicked me {{ count }} times.</button>'
            });

        let vm = new Vue({
            el: '#app'
        });
    </script>
</body>
</html>